package supershop.model;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

   /**
    * orders 实体类
    * Fri Nov 29 10:58:33 CST 2019 Nmggy
    */ 


public class Orders{
	private int id;
	private Date payDate;
	private int userId;
	private Users user;//下单人
	private String orderState;
	private double totalMoney;
	private int addressId;
	private Address address;//收获地址
	
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public Users getUser() {
		return user;
	}
	public void setUser(Users user) {
		this.user = user;
	}
	public void setId(int id){
	this.id=id;
	}
	public int getId(){
		return id;
	}
	public void setPayDate(Date payDate){
	this.payDate=payDate;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	public Date getPayDate(){
		return payDate;
	}
	public void setUserId(int userId){
	this.userId=userId;
	}
	public int getUserId(){
		return userId;
	}
	public void setOrderState(String orderState){
	this.orderState=orderState;
	}
	public String getOrderState(){
		return orderState;
	}
	public void setTotalMoney(double totalMoney){
	this.totalMoney=totalMoney;
	}
	public double getTotalMoney(){
		return totalMoney;
	}
	public void setAddressId(int addressId){
	this.addressId=addressId;
	}
	public int getAddressId(){
		return addressId;
	}
}

